//
//  SKWishListCell.m
//  loveKangaroo
//
//  Created by SeeKool on 15/3/6.
//  Copyright (c) 2015年 SeeKool Inc. All rights reserved.
//

#import "SKWishListCell.h"

@implementation SKWishListCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        UIScrollView *scrollView = [[UIScrollView alloc] init];
        scrollView.contentSize = CGSizeMake(ScreenWidth * 2, 0);
        [scrollView setBackgroundColor:[UIColor redColor]];
        scrollView.frame = CGRectMake(0, 0, ScreenWidth, self.height);
        [self addSubview:scrollView];
        
        UIButton *imageBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        imageBtn.backgroundColor = [UIColor yellowColor];
        imageBtn.frame = CGRectMake(10, 10, 30, 30);
        [scrollView addSubview:imageBtn];
        
        UILabel *pinPai = [[UILabel alloc] init];
        pinPai.font = [UIFont systemFontOfSize:13];
        pinPai.backgroundColor = [UIColor greenColor];
        pinPai.text = @"品牌:Chanel";
        pinPai.frame = CGRectMake(CGRectGetMaxX(imageBtn.frame) + 10, 0, 90, 20);
        [self addSubview:pinPai];
        
        UILabel *price = [[UILabel alloc] init];
        price.font = [UIFont systemFontOfSize:13];
        price.backgroundColor = [UIColor greenColor];
        price.text = @"参考价格:&800";
        price.frame = CGRectMake(CGRectGetMaxX(pinPai.frame) + 10, 0, 90, 20);
        [self addSubview:price];
        
        
        UILabel *name = [[UILabel alloc] init];
        name.font = [UIFont systemFontOfSize:13];
        name.backgroundColor = [UIColor greenColor];
        name.text = @"物品:眼霜";
        name.frame = CGRectMake(CGRectGetMaxX(imageBtn.frame) + 10, CGRectGetMaxY(pinPai.frame) + 20, 90, 20);
        [self addSubview:name];
        
        UILabel *remark = [[UILabel alloc] init];
        remark.font = [UIFont systemFontOfSize:13];
        remark.backgroundColor = [UIColor greenColor];
        remark.text = @"备注:浅灰色";
        remark.frame = CGRectMake(CGRectGetMaxX(imageBtn.frame) + 10, CGRectGetMaxY(name.frame) + 20, 90, 20);
        [self addSubview:remark];
        
        UILabel *referenceLocation = [[UILabel alloc] init];
        referenceLocation.font = [UIFont systemFontOfSize:13];
        referenceLocation.backgroundColor = [UIColor greenColor];
        referenceLocation.text = @"参考购买地点:北京";
        referenceLocation.frame = CGRectMake(CGRectGetMaxX(remark.frame) + 10, CGRectGetMaxY(name.frame) + 20, 160, 20);
        [self addSubview:referenceLocation];
        
    }
    return self;
}

@end
